package com.dao;

import com.pojo.Contract;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface ContractMapper {

    @Insert("insert into `order` (id,date, address,state,sum,client_email,salesman_id) values (#{id},#{date}, #{address},#{state}, #{sum},#{email}, #{salesmanid})")
    boolean insert(Contract contract);


    @Select("select * from `order` where id = #{id}")
    Contract select(int id);
}
